package com.peas.platform.module.icims.contract.initial.adapter.repository.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 初始合同参与方
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_contract_initial_participation`")
public class ContractInitialParticipationPo extends BasePo {

    // 合同ID
    // 【初始合同表】
    @Comment(value = "合同ID")
    @NotNull(message = "合同ID不能为空")
    @TableField(value = "`contract_initial_id`", jdbcType = JdbcType.BIGINT)
    private Long contractInitialId;

    // 参与类型
    // 甲方、乙方、第三方
    // 枚举取值:ContractParticipationType
    @Comment(value = "参与类型", enumType = "ContractParticipationType")
    @NotBlank(message = "参与类型不能为空")
    @Size(max = 20, message = "参与类型不能超过20个字符")
    @TableField(value = "`participation_type`", jdbcType = JdbcType.VARCHAR)
    private String participationType;

    // 参与方类型
    // 单位、个人
    // 枚举取值:ContractParticipationUserType
    @Comment(value = "参与方类型", enumType = "ContractParticipationUserType")
    @Size(max = 20, message = "参与方类型不能超过20个字符")
    @TableField(value = "`participation_user_type`", jdbcType = JdbcType.VARCHAR)
    private String participationUserType;

    // 名称
    // 单位名称、个人姓名
    @Comment(value = "名称")
    @Size(max = 200, message = "名称不能超过200个字符")
    @TableField(value = "`name`", jdbcType = JdbcType.VARCHAR)
    private String name;

    // 纳税识别号
    @Comment(value = "纳税识别号")
    @Size(max = 200, message = "纳税识别号不能超过200个字符")
    @TableField(value = "`identification`", jdbcType = JdbcType.VARCHAR)
    private String identification;

    // 联系人
    @Comment(value = "联系人")
    @Size(max = 20, message = "联系人不能超过20个字符")
    @TableField(value = "`contact`", jdbcType = JdbcType.VARCHAR)
    private String contact;

    // 联系人证件号码
    @Comment(value = "联系人证件号码")
    @Size(max = 20, message = "联系人证件号码不能超过20个字符")
    @TableField(value = "`contact_idcard`", jdbcType = JdbcType.VARCHAR)
    private String contactIdcard;

    // 联系手机号
    @Comment(value = "联系手机号")
    @Size(max = 20, message = "联系手机号不能超过20个字符")
    @TableField(value = "`contact_mobile`", jdbcType = JdbcType.VARCHAR)
    private String contactMobile;

    // 收款银行ID
    // 【银行表】
    @Comment(value = "收款银行ID")
    @TableField(value = "`proceeds_bank_id`", jdbcType = JdbcType.BIGINT)
    private Long proceedsBankId;

    // 收款账号
    @Comment(value = "收款账号")
    @Size(max = 100, message = "收款账号不能超过100个字符")
    @TableField(value = "`proceeds_account`", jdbcType = JdbcType.VARCHAR)
    private String proceedsAccount;

}
